<template>
  <div
    class="printInfoDialog"
    v-if="isShow"
  >
    <div class="tankuang-main">
      <div class="title">{{ title }}</div>
      <div class="content">
        <slot></slot>
      </div>
      <div class="tankuang-caozuo">
        <a
          class="confirm"
          @click="doConfirm"
        >确定</a>
      </div>
    </div>
  </div>
</template>

<script>
/**
 * * PrintInfoDialog
 */
export default {
  name: "PrintInfoDialog",
  components: {},
  mixins: [],
  props: ["title", "src"],
  data() {
    return {
      isShow: false
    };
  },
  computed: {},
  watch: {},
  beforeCreate() {},
  created() {},
  mounted() {},
  methods: {
    show() {
      this.isShow = true;
    },
    hidden() {
      this.isShow = false;
    },
    doCancle() {
      this.$emit("doCancle");
    },
    doConfirm() {
      this.hidden();
      this.$emit("doConfirm");
    }
  }
};
</script>

<style>
.printInfoDialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 23, 50, 0.5);
  /* opacity: 0.5; */
  z-index: 99;
}
.title {
  height: 40px;
  font-size: 18px;
  font-family: PingFang-SC-Bold;
  font-weight: bold;
  color: #373e4f;
  line-height: 40px;
}
.tankuang-main {
  width: 80%;
  position: absolute;
  top: calc(40% - 188rpx);
  left: 10%;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 25rpx;
  z-index: 100;
  text-align: center;
  font-size: 24rpx;
  color: #767d8f;
}
.content {
  width: 70%;
  padding: 0 15%;
  height: fit-content;
  /* display: flex;
  align-items: center;
  justify-content: center; */
}
.tankuang-caozuo {
  /*position: absolute;*/
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75rpx;
  line-height: 75rpx;
  border-top: 0.5px solid #e8eaf0;
}
.confirm {
  color: #0077ff;
  text-align: center;
  font-size: 36rpx;
  line-height: 75rpx;
}
</style>
